<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>元素的溢出问题</title>
		
		<style>
			.box1{
				background-color: yellow;
				width: 300px;
				overflow: visible;  /* 溢出可见 */
				overflow: hidden;  /* 溢出隐藏   截掉隐藏的*/
				overflow: scroll;   /* 显示滚动条  侧边和底边都有 */
				overflow: auto;
			}
			.box2{
				background-color: gray;
				width: 200px;
				height: 100px;
				overflow-x: auto;
				overflow-y: scroll;
			}
			.box3{
				
				width: 400px;
				height: 500px;
				background-color: aqua;
				opacity: 0.5;
			}
			
			
			
			
		</style>
	</head>
	<body>
		<div class="box1">
			<ul>
				<li>131321321313213132132132123123156498798465f1sd1f5sd1g31d3g13dsf1g341ds65f41g65sdf1sdfsad2f1sad1f3s1d3f1sa</li>
				<li>131321321313213132132132123123156498798465f1sd1f5sd1g31d3g13dsf1g341ds65f41g65sdf1sdfsad2f1sad1f3s1d3f1sa</li>
				<li>131321321313213132132132123123156498798465f1sd1f5sd1g31d3g13dsf1g341ds65f41g65sdf1sdfsad2f1sad1f3s1d3f1sa</li>
				<li>131321321313213132132132123123156498798465f1sd1f5sd1g31d3g13dsf1g341ds65f41g65sdf1sdfsad2f1sad1f3s1d3f1sa</li>
				<li>131321321313213132132132123123156498798465f1sd1f5sd1g31d3g13dsf1g341ds65f41g65sdf1sdfsad2f1sad1f3s1d3f1sa</li>
				<li>131321321313213132132132123123156498798465f1sd1f5sd1g31d3g13dsf1g341ds65f41g65sdf1sdfsad2f1sad1f3s1d3f1sa</li>
			</ul>
		</div>
		<hr>
		
		<div class="box2">
			<p> 13515sda465f465sa651313dfsf13213213564654fhgfd4g65d4  </p>
			<div class="box3">
				我是子元素
			</div>
		</div>
		
		
	</body>
</html>